<ion-header>
  <ion-navbar>
    <ion-title>维修确认单</ion-title>
  </ion-navbar>

</ion-header>
<ion-content class="repairinfo">
  <ion-list>
    <ion-item>
      <ion-label>电梯编号:</ion-label>
      <ion-input type="text" [readonly]="true" [(ngModel)]="repairInfoBean.elevatorNum"></ion-input>
    </ion-item>
    <div class="area">
      <div class="content">
        <p>故障描述:</p>
        <ion-textarea [readonly]="true" rows="5" type="text" [(ngModel)]="repairInfoBean.faultDescription"></ion-textarea>
      </div>
    </div>
    <div class="area">
      <div class="content">
        <p>原因及处理方式:</p>
        <ion-textarea rows="5" [readonly]="true" type="text" [(ngModel)]="repairInfoBean.reason"></ion-textarea>
      </div>
    </div>
    <div class="area">
      <div class="content">
        <p>更换的配件及耗材:</p>
        <ion-textarea rows="5" [readonly]="true" type="text" [(ngModel)]="repairInfoBean.replaceParts"></ion-textarea>
      </div>
    </div>
    <div class="area">
      <div class="content">
        <p>备注:</p>
        <ion-textarea [readonly]="true" rows="5" type="text" [(ngModel)]="repairInfoBean.remarks"></ion-textarea>
      </div>
    </div>

    <div class="area">
      <div class="content">
        <p>维修人员签字:</p>
        <img style="vertical-align: middle; display: inline-block;background-color: #f5f5f5;border-radius: 5px; margin-right: 4px;"
          src="{{repairInfoBean.maintSignUrl}}" />
      </div>
    </div>

    <ion-item style="margin-top:10px;">
      <ion-label>请问是否已修复:</ion-label>
      <ion-select okText="确定" cancelText="取消" placeholder="请选择" [(ngModel)]="repairInfoBean.isRepaired">
        <ion-option value="0">未修复</ion-option>
        <ion-option value="1">已修复</ion-option>
      </ion-select>
    </ion-item>

    <div *ngIf="repairInfoBean.isRepaired == '0'" class="area">
        <div class="content">
            <p>未修复原因:</p>
            <ion-textarea rows="5"  type="text" [(ngModel)]="repairInfoBean.unrepairedCause"></ion-textarea>
        </div>
    </div>

    <div *ngIf="repairInfoBean.isRepaired != null" class="areasign">
      <p style="line-height: 18px; font-size: 14px;">
        <img style="vertical-align: middle; display: inline-block; width: 18px; margin-right: 4px;" src="assets/icon/icon_remind.png">请在签完名后点击保存</p>
      <signatrue [inValue]="time" (outPut)="getImgUrl($event)"></signatrue>
    </div>

  </ion-list>
  <button ion-button (click)="submit()" class="submit">确定</button>
</ion-content>